// import navigation from '../components/navigation'
// import footer from '../components/footer'
// import cart from '../views/cart'
// import content from '../views/content'
// import home from '../views/home'
// import list from '../views/list'
// import login from '../views/login'
// import logon from '../views/logon'
// import mine from '../views/mine'

const Navigation = () => import('@/components/navigation')
const Footer = () => import('@/components/footer')
const Cart = () => import('@/views/cart')
const Content = () => import('@/views/content')
const Home = () => import('@/views/home')
const List = () => import('@/views/list')
const Login = () => import('@/views/login')
const Logon = () => import('@/views/logon')
const Mine = () => import('@/views/mine')

export default [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    components: {
      header: Navigation,
      footer: Footer,
      default: Home
    },
    meta: {
      title: '首页'
    }
  },
  {
    path: '/cart',
    name: 'cart',
    components: {
      header: Navigation,
      footer: Footer,
      default: Cart
    },
    meat: {
      title: '购物车'
    }
  },
  {
    path: '/content',
    name: 'content',
    components: {
      header: Navigation,
      footer: Footer,
      default: Content
    },
    meat: {
      title: '详情页'
    }
  },
  {
    path: '/list',
    name: 'list',
    components: {
      header: Navigation,
      footer: Footer,
      default: List
    },
    meat: {
      title: '列表页'
    }
  },
  {
    path: '/login',
    name: 'login',
    components: {
      header: Navigation,
      footer: Footer,
      default: Login
    },
    meat: {
      title: '登录'
    }
  },
  {
    path: '/logon',
    name: 'logon',
    components: {
      header: Navigation,
      footer: Footer,
      default: Logon
    },
    meat: {
      title: '注册'
    }
  },
  {
    path: '/mine',
    name: 'mine',
    components: {
      header: Navigation,
      footer: Footer,
      default: Mine
    },
    meat: {
      title: '个人主页'
    }
  }
]
